//package com.chang.jason.recyclerviewinrecyclerview;
//
//import android.content.Context;
//import android.support.v7.widget.RecyclerView;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.TextView;
//
//import java.util.List;
//
///**
// * Created by Jason.Chang on 2018-03-14.
// * explain:
// */
//
//public class GridAdapter extends RecyclerView.Adapter<GridAdapter.MyViewHolder> {
//    private Context context;
//    private List<String> list;
//
//    public GridAdapter(Context context, List<String> ls) {
//        this.context = context;
//        this.list = ls;
//    }
//
//    @Override
//    public GridAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//        View view= LayoutInflater.from(parent.getContext()).inflate(R.layout.item_rv_rv,parent,false);
//        return new MyViewHolder(view);
//    }
//
//    @Override
//    public void onBindViewHolder(GridAdapter.MyViewHolder holder, int position) {
////        holder.tv.setText(list.get(position)+"啦啦啦");
//    }
//
//    @Override
//    public int getItemCount() {
//        return list.size();
//    }
//
//    public static class MyViewHolder extends RecyclerView.ViewHolder {
//        public TextView tv;
//
//        public MyViewHolder(View itemView) {
//            super(itemView);
//            tv = (TextView) itemView.findViewById(R.id.tv);
//        }
//    }
//}
